
import {pxToRpx} from "./unitConversion";

const navHeight=44; //px
const customTabBarHeight = 148; //rpx

//获取页面高度 rpx 【出去 tabar 和 mynav】
function getPageContentHeight() {
	const screenHeightv = uni.getStorageSync('screenHeight');
	return pxToRpx(screenHeightv - navHeight) - customTabBarHeight
}

export default {
	theme: 1, //默认主题样式
	navHeight:navHeight||44, //px,页面头部状态栏的高度
	tabBarHeight:customTabBarHeight || 148, //rpx,页面底部tabbar的高度
	pageContentHeight: getPageContentHeight() //rpx
}
